<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>写博客页面</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="${pageContext.request.contextPath}/static/umeditor/third-party/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/umeditor/third-party/template.min.js"></script>
<script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath}/static/umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath}/static/umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/umeditor/lang/zh-cn/zh-cn.js"></script>
<link href="${pageContext.request.contextPath}/static/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
</head>
<body>
	<div style="width:100%;">
		<form action="${pageContext.request.contextPath}/admin/save.do" method="post">
			<table cellspacing="20px">
				<tr>
					<td width="80px">博客标题：</td>
					<td><input type="text" id="title" name="title" style="width:400px" /></td>
				</tr>
				 <tr>
					<td>所属类别：</td>
					<td>
					<select id="blogTypeId" name="blogType.typeId" style="width:154px">
							<option value="">请选择博客类别</option>
							<c:forEach items="${blogTypes }" var="blogTypes">
								<option value="${blogTypes.typeId }">${blogTypes.typeName }</option>
							</c:forEach>
					</select>
					</td>
				</tr> 
				<tr>
					<td valign="top">博客内容：</td>
					<td><script type="text/plain" id="myEditor" name="content" style="width:800;height:340px;">
    
						</script>
					</td>
				</tr>
				<!-- <tr>
					<td>关键字：</td>
					<td><input type="text" id="keyWord" name="keyWord"
						style="width:400px" />&nbsp;&nbsp;&nbsp;多个关键字的话请用空格隔开</td>
				</tr> -->
				<tr>
					<td></td>
					<td><input type="submit" value="发布博客"></td>
				</tr>
			</table>
		</form>
	</div>
	<script type="text/javascript">
	    //实例化编辑器
	   var um = UM.getEditor('myEditor');
	  	   
	</script> 
</body>
</html>
